//
//  HZGoodsDetailTopModel.h
//  app
//
//  Created by 刘华舟 on 15/6/19.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HZProductTextImageDetailModel.h"

static const NSInteger kGoodsDetailPicCarslViewHeight = 640;

static const NSInteger kPicHeadViewHeight = 160+kSizeMallViewMargin;

static const NSInteger kHZGoodsDetailPicHeadViewMoreDetailsWidth = 100;
static const NSInteger kHZGoodsDetailPicHeadViewCommonLabelHeight = 80;
static const NSInteger kHZGoodsDetailPicHeadViewPriceLabelWidth = 180;
static const NSInteger kHZGoodsDetailPicHeadViewNetPayLabelWidth = 48;
static const NSInteger kHZGoodsDetailPicHeadViewNetPayLabelHeight = 16;

@interface HZGoodsDetailTopModel : NSObject

@property (assign, nonatomic) CGFloat viewHeight;

//details 商品信息
@property (strong, nonatomic, readonly) NSString *shopID;
@property (strong, nonatomic, readonly) NSString *shopName;
@property (strong, nonatomic, readonly) NSString *openTime;
@property (strong, nonatomic, readonly) NSString *productID;
@property (strong, nonatomic, readonly) NSString *productTitle;
@property (strong, nonatomic, readonly) NSString *productName;
@property (strong, nonatomic, readonly) NSString *productPic;
@property (strong, nonatomic, readonly) NSString *productIntros;
@property (strong, nonatomic, readonly) NSString *salePrice;
@property (strong, nonatomic, readonly) NSString *averagePrice;
@property (strong, nonatomic, readonly) NSString *tagPrice;

@property (strong, nonatomic, readonly) NSString *width;
@property (strong, nonatomic, readonly) NSString *height;

@property (strong, nonatomic, readonly) NSString *extraTitle1; //这里是商品的标题下面的介绍
@property (strong, nonatomic, readonly) NSString *extraTitle2;  //商品价格后面的红色文字

@property (strong, nonatomic, readonly) NSString *jifen;        //赠送的积分
@property (strong, nonatomic, readonly) NSString *giftGlods;    //赠送的金豆
@property (strong, nonatomic, readonly) NSString *saleNum;      //销售数量

@property (strong, nonatomic, readonly) NSString *num;          //库存数量

@property (assign, nonatomic) NSInteger buyNum;

@property (strong, nonatomic, readonly) NSString *productType;            //商品类型 normal 正常商品 timesale 限时特卖 gift 赠品

@property (strong, nonatomic, readonly) NSString *srvStartTime; //服务器开售时间
@property (strong, nonatomic, readonly) NSString *srvEndTime;   //服务器结束时间


@property (assign, nonatomic, getter=isCollection) BOOL collection;

@property (strong, nonatomic, readonly) NSArray *productPictures; //商品的图文信息 图片
@property (assign, nonatomic, readonly) CGFloat topPictureHeight;   //头部商品图片的高度

@property (strong, nonatomic, readonly) NSString *gold;     //可以使用的金豆



@property (strong, nonatomic, readonly) NSArray *specifications; //商品参数
@property (strong, nonatomic, readonly) NSArray *specificationsCellHeightArray;
@property (assign, nonatomic, readonly) CGFloat specificationsAllHeight;
@property (strong, nonatomic, readonly) NSArray *extendIntors; //商品的图文信息 文字

@property (strong, nonatomic, readonly) NSString *isHot;
@property (strong, nonatomic, readonly) NSDictionary *goldInfo;
@property (strong, nonatomic, readonly) NSString *gold2Money;
@property (strong, nonatomic, readonly) NSString *gold2RMB;


@property (strong, nonatomic, readonly) NSString* isNetPay;

@property (strong, nonatomic, readonly) NSString* pinglunNum;
@property (strong, nonatomic, readonly) NSString *deliveryURL;

/** 商品活动 add by SN*/
@property (nonatomic, strong, readonly) NSArray * promotion;


+ (instancetype)modelWithDictionary:(NSDictionary *)dict;
- (instancetype)initModelWithDictionary:(NSDictionary *)dict;


@end
